package org.px.domain;

public class UserIdentity {
    
    private String user_id;        // 用户唯一标识
    private String username;      // 登录用户名
    private String password;      // 登录密码
    private String user_type;      // 用户类型（employee/admin）
    private int status;           // 账号状态（0禁用，1启用）

    public UserIdentity() {}

    public UserIdentity(String user_id, String username, String password, String user_type, int status) {
        this.user_id = user_id;
        this.username = username;
        this.password = password;
        this.user_type = user_type;
        this.status = status;
    }

    // Getters and Setters
    public String getUser_id() { return user_id; }
    public void setUser_id(String user_id) { this.user_id = user_id; }
    public String getUsername() { return username; }
    public void setUsername(String username) { this.username = username; }
    public String getPassword() { return password; }
    public void setPassword(String password) { this.password = password; }
    public String getUser_type() { return user_type; }
    public void setUser_type(String user_type) { this.user_type = user_type; }
    public int getStatus() { return status; }
    public void setStatus(int status) { this.status = status; }

    @Override
    public String toString() {
        return "UserIdentity{" +
                "userId='" + user_id + '\'' +
                ", username='" + username + '\'' +
                ", userType='" + user_type + '\'' +
                '}';
    }
}
